package com.gitee.chili.leisure.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * TImeoutProperties
 *
 * @author week solider
 * @since 2020.09.25
 */
@Data
@Component
@ConfigurationProperties("spring.timer.timeout")
public class TimeoutProperties {


    // 这里是所有定时任务的超时时长 (单位均为: 秒)

    /** 房间超时时长 */
    private int roomTimeout = 3600;

    /** 投票解散房间 */
    private int voteTimeout = 60;

    /** 定缺 */
    private int uselessTimeout = 10;

    /** 换三张 */
    private int exchangeTimeout = 15;

    /** 玩家出牌 */
    private int discardTimeout = 10;

    /** 玩家特殊操作 */
    private int specialTimeout = 10;

}
